package com.kch.system.mapper;

import com.kch.system.domain.SysBusiness;
import com.kch.system.domain.UserCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserCollectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserCollect record);

    int insertSelective(UserCollect record);

    UserCollect selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserCollect record);

    int updateByPrimaryKey(UserCollect record);

    List<SysBusiness> selectCollectByUserId(@Param("userId") Integer userId);

    UserCollect selectByUserAndBus(@Param("userId") Integer userId, @Param("busId") Integer busId,
                                   @Param("cloumnCode") String cloumnCode);

    int deleteByUserAndBus(@Param("userId") Integer userId, @Param("busId") Integer busId,
                           @Param("cloumnCode") String cloumnCode);
}